import React from 'react'
import { Tag } from 'antd'
function TimeShow({ time }) {
  // console.log(new Date(time).toLocaleTimeString()) // 下午4:21:56
  const origintime = new Date(time).toLocaleDateString() // 2020/11/24
  const showtime = origintime.split('/').join('-')

  return (
    <Tag color="cyan">{showtime}</Tag>
  )
}

export default TimeShow
